define(['egis'], function (egis) {
    Window.deserializer = Window.deserializer || new egis.core.Deserializer();
    Window.container = Window.container || {};

    dsBridge.register('Entity_setPropertyByIndex', function (sourceId, index, content) {
        var entity = Window.container[sourceId];
        var property = Window.deserializer.createJsInstance(JSON.parse(content));
        entity.setPropertyByIndex(index, property);
    });

    dsBridge.register('Entity_setProperty', function (sourceId, name, content) {
        var entity = Window.container[sourceId];
        var property = Window.deserializer.createJsInstance(JSON.parse(content));
        entity.setProperty(name, property);
    });
})